//app.js
import {Cart} from "./models/cart"
import {Token} from "./models/token"
import {IM} from "./utils/im"

const im = new IM();
App({
    onLaunch: function () {
        // im.polling()
        const cart = new Cart()
        if (!cart.isEmpty()) {
            wx.showTabBarRedDot({
                index: 2
            })
        }
        const token = new Token()
        token.verify()
    },
});